home *** CD-ROM | disk | FTP | other *** search
- /*
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- ▒ ▒
- ▒ ▒
- ▒ Neuromancer's Graphics Library ▒
- ▒ Version 1.0c ▒
- ▒ ▒
- ▒ This program demonstrates the font routines. ▒
- ▒ ▒
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- ▒ ▒
- ▒ Project: MTLIB01.LIB ▒
- ▒ DEMO10.CPP ▒
- ▒ ▒
- ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
- */
-
- #include <iostream.h>
- #include <stdlib.h>
- #include <conio.h>
- #include <dos.h>
- #include <string.h>
- #include "video.h"
- #include "fonts.h"
- #include "palette.h"
-
-
- FONT **font;
-
- void main(int argc, char *argv[])
- {
- byte palette[768];
- char name[13];
-
- mtSetVGAMode(); //Set up VGA Mode
- mtClrScr(25);
-
- if (argc != 2)
- {
- strcpy(name,"default.fon");
- }
- else
- {
- strcpy(name,argv[1]);
- }
-
- if ((font=mtLoadFont(name))==NULL)
- {
- mtSetTextMode();
- cout << "Error!!!" << endl;
- exit(0);
- }
-
- mtSetColor(45);
- mtPrintStr(10,10,"!\"#$%&'()*+,-./",font);
- mtSetColor(14);
- mtPrintStr(10,20,"0123456789:;<=>?@",font);
- mtSetColor(56);
- mtPrintStr(10,30,"ABCDEFGHIJKLMNOPQRSTUVWXYZ",font);
- mtSetColor(152);
- mtPrintStr(10,40,"[\\]^_`",font);
- mtSetColor(51);
- mtPrintStr(10,50,"abcdefghijklmnopqrstuvwxyz",font);
- mtSetColor(35);
- mtPrintStr(10,60,"{|}~",font);
-
- getch();
-
- mtSetTextMode();
-
- mtFreeFont(font);
-
- cout << "Thank you for using the library!" << endl;
-
- exit(0);
-
- }
-
-
-
-
-
-
-
-